import request from '@/utils/request'

/**
 * 获取用户证件/证书详情
 * @param {Object} query
 */
export function getPageList(data) {
  return request({
    url: '/employeeCertificate/getPageList',
    method: 'get',
    params: data
  })
}
/**
 * 新增用户证件/证书
 * @param {Object} query
 */
export function add(data) {
  return request({
    url: '/employeeCertificate/add',
    method: 'post',
    data: data
  })
}

/**
 * 编辑用户证件/证书
 * @param {Object} query
 */
export function edit(data) {
  return request({
    url: '/employeeCertificate/edit',
    method: 'put',
    data: data
  })
}

/**
 * 获取用户证件/证书详情
 * @param {Object} query
 */
export function getDetail(data) {
  return request({
    url: '/employeeCertificate/getDetail',
    method: 'get',
    params: data
  })
}

/**
 * 删除用户证件/证书
 * @param {Object} query
 */
export function del(data) {
  return request({
    url: '/employeeCertificate/delete/'+data,
    method: 'delete'
  })
}
